package org.ysu.entity;

import java.io.Serializable;
import org.ysu.core.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author CaoYuJia
 * @since 2024-08-14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "Role对象", description = "角色表")
public class Role extends BaseEntity {

    private static final long serialVersionUID = 1L;

    public Role(String name, String description) {
        this.name = name;
        this.description = description;
    }

    public Role(Long id, String name, String description) {
        super(id);
        this.name = name;
        this.description = description;
    }

    public Role(Long id, Boolean status) {
        super(id);
        this.status = status;
    }
    @ApiModelProperty("角色名称")
    private String name;

    @ApiModelProperty("角色说明")
    private String description;

    @ApiModelProperty("状态")
    private Boolean status;


}
